import PageHeader from "@/src/components/PageHeader";
import ProductForm from "@/src/components/ProductForm";
import { getProduct } from "@/src/service/products";
import React from "react";

const Edit = async ({ params: { id } }) => {
  const product = await getProduct(id);
  return (
    <>
      <PageHeader>Edit Product</PageHeader>
      <ProductForm product={product} />
    </>
  );
};

export default Edit;
